home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 21 / CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso / CUCD / Utilities / IDerPrefs / IDerPrefs.install < prev    next >
Encoding:
Text File  |  1998-01-31  |  2.9 KB  |  120 lines

  1. (welcome "Welcome to the IDerPrefs installation utility.")
  2. (complete 0)
  3. (set @default-dest
  4.    (askdir
  5.       (prompt "Where would you like to install the program and it's icon?")
  6.       (help "The files will be copied directly into the directory you specify.")
  7.       (default "SYS:Prefs/")
  8.    )
  9. )
  10.  
  11. (set there
  12.    (exists @default-dest
  13.       (noreq)
  14.    )
  15. )
  16.  
  17. (if
  18.    (= there 1)
  19.    (abort @default-dest "\nis an existing file, I can't install IDerPrefs here.")
  20. )
  21.  
  22. (if
  23.    (= there 0)
  24.    (makedir @default-dest)
  25. )
  26.  
  27. (copyfiles
  28.    (prompt "OK to copy?")
  29.    (source "")
  30.    (choices "IDerPrefs" "IDerPrefs.info")
  31.    (dest @default-dest)
  32. )
  33.  
  34. (complete 33)
  35. (if
  36.    (askbool
  37.       (prompt "Do you want the default config file to be installed?")
  38.       (help "This is to enable the Reset to Defaults menu item.  You should install it regardless of whether you already have a config file you're using or not.")
  39.       (default 1)
  40.    )
  41.    (
  42.      (set config-dest
  43.        (askdir
  44.           (prompt "Copy the default config where?")
  45.           (help "The file 'orig_IDer.prefs' will be copied here.")
  46.           (default "s:")
  47.        )
  48.      )
  49.      (set there
  50.        (exists config-dest
  51.          (noreq)
  52.        )
  53.      )
  54.      (if
  55.        (= there 1)
  56.        (abort config-dest "\nis an existing file, I can't install IDerPrefs here.")
  57.      )
  58.      (if
  59.        (= there 0)
  60.        (makedir config-dest)
  61.      )
  62.      (copyfiles
  63.        (prompt "OK to copy?")
  64.        (source "")
  65.        (choices "orig_IDer.prefs")
  66.        (dest config-dest)
  67.      )
  68.      (tooltype
  69.        (prompt (tackon "Now setting a tooltype:\nORIGNAME=" (tackon config-dest "orig_IDer.prefs")))
  70.        (dest (tackon @default-dest "IDerPrefs"))
  71.        (help "Without this step, the Reset To Defaults menu item will be disabled.")
  72.        (settooltype "ORIGNAME" (tackon config-dest "orig_IDer.prefs"))
  73.      )
  74.    )
  75. )
  76. (complete 66)
  77. (if
  78.    (askbool
  79.       (prompt "Do you want the online help (guide) file installed?")
  80.       (help "This will enable context sensitive help on the Help key.")
  81.       (default 1)
  82.    )
  83.    (
  84.      (set help-dest
  85.        (askdir
  86.           (prompt "Where would you like to install the help file?")
  87.           (help "The file 'IDerPrefs.guide' will be copied here.")
  88.           (default "help:")
  89.        )
  90.      )
  91.      (set there
  92.        (exists help-dest
  93.          (noreq)
  94.        )
  95.      )
  96.      (if
  97.        (= there 1)
  98.        (abort help-dest "\nis a file! I can't install IDerPrefs here.")
  99.      )
  100.      (if
  101.        (= there 0)
  102.        (makedir help-dest)
  103.      )
  104.      (copyfiles
  105.        (prompt "OK to copy?")
  106.        (source "")
  107.        (choices "IDerPrefs.guide" "IDerPrefs.guide.info")
  108.        (dest help-dest)
  109.      )
  110.      (tooltype
  111.        (prompt (tackon "Now setting a tooltype:\nHELPNAME=" (tackon help-dest "IDerPrefs.guide")))
  112.        (dest (tackon @default-dest "IDerPrefs"))
  113.        (help "Without this step, online help will be disabled.")
  114.        (settooltype "HELPNAME" (tackon help-dest "IDerPrefs.guide"))
  115.      )
  116.    )
  117. )
  118. (complete 100)
  119.  
  120.